<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="text/javascript">
    var a = [1, 2, 3];
    var b = [];

    // es6 提供的一个对象合并的api
    Object.assign(b, a);

    b.push(4)

    console.log(b, a);


</script>

</html>
